#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
int main(int argc,char* argv[])
{
	if(argc != 2)
	{
		printf("can not,execute!\n");
		exit(1);
	}
	else
	{
		printf("获取环境变量:MY_VAL:%s\n",getenv("MY_VAL"));
		if(strcmp(argv[1],"-a") == 0)
		{
			printf("hello A!\n");
		}
		else if(strcmp(argv[1],"-b") == 0)
		{
			printf("hello B!\n");
		}
		else
		{
			printf("default!\n");
		}
	}
	return 0;	
}
